From af2107689297b3970b2492202ebd7b99dd147766 Mon Sep 17 00:00:00 2001 From: David Kilzer Date: Fri, 6 Mar 2015 07:33:11 +0000 Subject: [PATCH] Protect Document in ProcessingInstruction::setXSLStyleSheet() =================================================================== Gbp-Pq: Name protect-document.patch --- Source/WebCore/dom/ProcessingInstruction.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/WebCore/dom/ProcessingInstruction.cpp b/Source/WebCore/dom/ProcessingInstruction.cpp index b37ae84435..2e729e6a76 100644 --- a/Source/WebCore/dom/ProcessingInstruction.cpp +++ b/Source/WebCore/dom/ProcessingInstruction.cpp @@ -215,6 +215,7 @@ void ProcessingInstruction::setXSLStyleSheet(const String& href, const URL& base { ASSERT(m_isXSL); m_sheet = XSLStyleSheet::create(this, href, baseURL); + Ref protect(document()); parseStyleSheet(sheet); } #endif -- 2.30.2